package com.noahplat.person.pojo;


import lombok.Data;
import org.hibernate.validator.constraints.Length;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 功能：就诊记录实体类
 * name:宋彦磊
 * time:2021.02.28
 */

@Data
@Table(name = "tb_person")
public class Person implements Serializable {
    @Id
    @KeySql(useGeneratedKeys = true)
    private Long id;   //主键ID

    private Long acctid;    //账套id

    private Long userid;  //所属账户ID

    @NotNull(message = "人员编号不能为空")
    @Length(max = 32)
    private String no; //人员编号

    @Length(max = 1)
    private String del = "N"; //是否删除  Y:已删除 N:未删除

    @Column(name = "created_time")
    private Date createdtime; //创建时间


}
